package com.peas.platform.module.icims.base.auth.controller.vo;

import java.util.*;

import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("用户登录记录")
public class UserLoginVo extends BaseVo {

    //外键
    @ApiModelProperty(value = "用户表ID")
    @NotNull(message = "用户表ID不能为空")
    private Long userId;

    @ApiModelProperty(value = "状态")
    @NotBlank(message = "状态不能为空")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

    @ApiModelProperty(value = "登录时间")
    private Date loginTime;

    @ApiModelProperty(value = "登录IP")
    @Size(max = 15, message = "登录IP不能超过15个字符")
    private String loginIp;

}
